package com.pkx.cloud.fse7.dms.organization.service;

import com.pkx.cloud.fse7.dms.organization.entity.Organization;
import com.pkx.cloud.mybatis.comn.BaseSev;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 *  服务类
 *
 * @author chenwg
 * @since 2020-11-17
 */
public interface OrganizationService extends BaseSev<Organization> {

    /**
     * 分页列表
     *
     * @param organization
     * @return
     */
    Page<Organization> pageList(Page page, Organization organization);

    /**
     * 列表查询
     *
     * @param organization
     * @return
     */
    List<Organization> listByEntity(Organization organization);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    Organization selectById(Long id);

    /**
     * 保存
     *
     * @param organization
     * @return
     */
    Boolean saveOrganization(Organization organization);

    /**
     * 修改
     *
     * @param organization
     * @return
     */
    Boolean modify(Organization organization);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Boolean deleteById(String id);
}
